package com.crm.model.jdao;

import org.springframework.data.repository.CrudRepository;

import com.crm.model.pojo.Contact;

/**
 * 联系人dao
 * @author Menghui
 *
 */
public interface IContactDAO extends CrudRepository<Contact, Integer>{

	//根据联系人id查询
	public Contact findByConId(Integer id);
	
	/**
	 * 根据联系人姓名查询
	 * @param conName
	 * @return
	 */
	public Contact findByConName(String conName);
	
}
